<%@ page language="java" import="java.util.*" pageEncoding="BIG5"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>LOGIN</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	<div align="left">
  	Welcome to Login page
  	<form name="LoginForm" id="LoginForm" method="post" action="checklogin.jsp">
		<input type="radio" name="accType" value="Student" checked="checked" >Student</input>
		<input type="radio" name="accType" value="Teacher" >Teacher</input>
		<input type="radio" name="accType" value="Manager" >Manager</input>
	    <table width="30%" border="0">
	    	<tr>
	    		<td border="0" width="40%" align="right">Account:</td>
	    		<td><input type="text" id="acc" name="acc" width="60%" /></td>
	    	</tr>
	    	<tr>
	    		<td border="0" width="40%" align="right">Password:</td>
	    		<td><input type="password" id="pwd" name="pwd" width="60%" /></td>
	    	</tr>
	    	<tr>
	    		<td align="right">
	    			<input type="button" id="create" name="create" onClick="createAcc()" value="Create Account"/>
	    		</td>
	    		<td align="right">
	    			<input type="submit" id="confirm" name="confirm" value="Login"/>    			
	    		</td>
	    	</tr>
	
	    </table>
		
    </form>
    </div>
    
    <script type="text/javascript">
    	function createAcc(){
    		document.location.href = "createAcc_Signal.jsp";
    	}
    </script>
  </body>
</html>
